#include <string>

class ContactsException
{
private:
    std::string message;

public:
    ContactsException(std::string str = "A problem") : message(str) {};

    // 返回异常原因
    std::string what() const
    {
        return message;
    }
};
